﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.BUS;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.DAL;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.VO;
using System.Data;

namespace Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.BUS
{
    class UserBusNCC
    {
        private NhaCungCap NCC;

        public UserBusNCC()
        {
            NCC = new NhaCungCap();
        }

        public bool Insert(UserVONCC obj)
        {
            return NCC.Insert(obj.TENNHACUNGCAP,obj.DIACHI,obj.DIENTHOAI,obj.EMAIL);
        }

        public bool Update(UserVONCC obj)
        {
            return NCC.Update(obj.MANHACUNGCAP, obj.TENNHACUNGCAP, obj.DIACHI, obj.DIENTHOAI, obj.EMAIL);
        }

        public bool Delete(UserVONCC obj)
        {
            return NCC.Delete(obj.MANHACUNGCAP);
        }

        public DataTable SelectAllTable()
        {
            return NCC.SelectAll();
        }

        public DataTable SelectID(int MaNCC)
        {
            return NCC.SelectID(MaNCC);
        }
    }
}
